package com.smedi.ismedi.dangeroussourcemanage.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 危险源库主表Entity类
 *
 * @author xienannan
 * @date 2021/08/23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "dsm_dangerous_source")
public class DangerousSourceManageEntity extends BasicFieldEntity implements Serializable {
    /**
     * 项目id
     */
    @TableField(value = "project_id")
    private Long projectId;

    /**
     * 项目名称
     */
    @TableField(value = "project_name")
    private String projectName;

    /**
     * 危险源库id
     */
    @TableField(value = "library_id")
    private Long libraryId;

    /**
     * 施工单位id
     */
    @TableField(value = "construction_unit_id")
    private Long constructionUnitId;

    /**
     * 施工单位
     */
    @TableField(value = "construction_unit")
    private String constructionUnit;

    /**
     * 单位工程
     */
    @TableField(value = "unit_engineering")
    private String unitEngineering;

    /**
     * 工程地址
     */
    @TableField(value = "project_address")
    private String projectAddress;

    /**
     * 计划施工时间
     */
    @TableField(value = "plan_construction_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime planConstructionTime;

    /**
     * 计划结束时间
     */
    @TableField(value = "plan_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime planEndTime;
}